<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core"
                xmlns:constants="http://www.tuanzi.com/constants/tags"
                xmlns:security="http://www.springframework.org/security/tags">
            <div class="ui-g ui-fluid">
                <div class="ui-g-12">
                    <div class="ui-g-2">
                        <p:outputLabel for="finalScore" value="同盾final分"/>
                    </div>
                    <div class="ui-g-4">
                        <div class="input-group">
                            <span class="input-group-addon">小于</span>
                            <p:inputText  id="finalScore" value="#{firstPartyTagInfoBean.$.finalScore}" disabled="#{firstPartyTagInfoBean.isView()}"/>
                            <span class="input-group-addon">分</span>
                        </div>
                    </div>
                    <div class="ui-g-12 ">
                        <p:commandButton value="新增规则" icon="fa fa-plus" style="width: 120px;margin-bottom: 5px"
                                         actionListener="#{firstPartyTagInfoBean.onAddTongdun}"
                                         oncomplete="PF('tongdun-adding').show()" disabled="#{firstPartyTagInfoBean.isView()}"/>
                    </div>
                    <div class="ui-g-12">
                        <p:dataTable id="statisticRecordDataTable"
                                     style="width: 100%;text-align:center"
                                     rowIndexVar="rowIndex" var="record"
                                     value="#{firstPartyTagInfoBean.tongdunManyHeads}">
                            <p:column headerText="操作" exportable="false">
                                <p:splitButton icon="fa fa-eye"
                                               process="@form" actionListener="#{firstPartyTagInfoBean.onSeeTongdun(rowIndex)}"
                                               update="@form" disabled="#{firstPartyTagInfoBean.isView()}" oncomplete="PF('tongdun-adding').show()">
                                    <p:menuitem value="删除" icon="fa fa-fw fa-remove"
                                                action="#{firstPartyTagInfoBean.onDeleteTongdun(rowIndex)}"
                                                process="@this" update="statisticRecordDataTable">
                                        <p:confirm header="删除" message="确定删除规则？"/>
                                    </p:menuitem>
                                </p:splitButton>
                            </p:column>
                            <p:column headerText="唯一标识" style="text-align:center;">
                                <h:outputText value="不限制" rendered="#{record.onlyRemark==0}"/>
                                <h:outputText value="手机号" rendered="#{record.onlyRemark==1}"/>
                                <h:outputText value="身份证" rendered="#{record.onlyRemark==2}"/>
                            </p:column>
                            <p:column headerText="时间" style="text-align:center;">
                                <h:outputText value="七天内" rendered="#{record.timeRemark==1}"/>
                                <h:outputText value="一个月内" rendered="#{record.timeRemark==2}"/>
                                <h:outputText value="三个月内" rendered="#{record.timeRemark==3}"/>
                            </p:column>
                            <p:column headerText="行业" style="text-align:center;">
                                <h:outputText value="#{record.industry}" />
                            </p:column>
                            <p:column headerText="申请次数（小于等于）" style="text-align:center;">
                                <h:outputText value="#{record.counts}"/>
                            </p:column>
                        </p:dataTable>
                    </div>
                </div>
            </div>
</ui:composition>